package org.jing.core.socket;

import org.jing.core.lang.data.BaseSerializableDto;
import org.jing.core.lang.annotation.SerializableField;
import org.jing.core.lang.annotation.SerializableType;

/**
 * Description: <br>
 *
 * @author bks <br>
 * @since 2023-09-20 <br>
 */
@SuppressWarnings("WeakerAccess")
@SerializableType
public class SocketConfiguration extends BaseSerializableDto {
    @SerializableField(value = "port", required = true)
    private int port;

    @SerializableField(value = "encoding")
    private String encoding;

    @SerializableField(value = "permits", defaultValue = "-1")
    private int permits;

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public int getPermits() {
        return permits;
    }

    public void setPermits(int permits) {
        this.permits = permits;
    }
}
